import axios from "./myaxios.js"

export async function find(obj) {
    return await axios.get(`/xc/student`, {
        params: obj
    });
}
export async function findby(obj) {
    return await axios.get(`/xc/student/uuid/${obj.uuid}`, {
        params: obj
    });
}
export async function add(obj) {
    console.log(obj);
    return await axios.post(`/xc/student`, {}, {
        params: obj
    });
}
export async function update(obj) {
    return await axios.put(`/xc/student`, {}, {
        params: obj
    });
}
export async function del(id) {
    return await axios.delete(`/xc/student/${id}`);
}